package com.icart.entities;

import javax.persistence.*;

@Entity
@Table(name = "mk_fwcode", schema = "amp", catalog = "")
public class MkFwcodeEntity {
    private long id;
    private String fwcode;

    @Id
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "fwcode")
    public String getFwcode() {
        return fwcode;
    }

    public void setFwcode(String fwcode) {
        this.fwcode = fwcode;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MkFwcodeEntity that = (MkFwcodeEntity) o;

        if (id != that.id) return false;
        if (fwcode != null ? !fwcode.equals(that.fwcode) : that.fwcode != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (id ^ (id >>> 32));
        result = 31 * result + (fwcode != null ? fwcode.hashCode() : 0);
        return result;
    }
}
